package wifiunion.com.notice.widget.filterCommunityUuiddialog;

import com.google.gson.reflect.TypeToken;


import java.util.HashMap;
import java.util.List;

import wifiunion.com.notice.BaseCallBack;
import wifiunion.com.notice.Constants;
import wifiunion.com.notice.DataSyncContact;
import wifiunion.com.notice.HttpUtils;
import wifiunion.com.notice.entity.User;
import wifiunion.com.notice.widget.treedialog.entity.TreeEntity;

/**
 * Created by Administrator on 2017/5/25.
 */

public class FilterUuidModel implements DataSyncContact.Model {
//    @Override
//    public void loadData(String url, HashMap<String, Object> params, BaseCallBack callBack) {
//
//    }

    public void getTreeFilterRequest(HashMap<String, Object> param1s, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_DATASYNC_TREEFILTER, param1s, callBack,
                new TypeToken<List<FilterUuidEntity>>() {
                }.getType());
    }

    public void getCurrentTreeRequest(HashMap<String, Object> param1s, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_DATASYNC_TREESOURCE, param1s, callBack,
                new TypeToken<List<TreeEntity>>() {
                }.getType());
    }

    @Override
    public void loadData(String url, HashMap<String, Object> params, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_LOGIN, params,
                callBack, new TypeToken<User>() {
                }.getType());
    }

}
